import link from "@/api/link.js"

let homes = {
    state: {
        text: "专享活动",
        listobj: {}
    },
    mutations: {
        UPOBJ(state, payload) {
            state.listobj = payload
        }


    },
    actions: {
        LINK_DATA(context, payload) {
            console.log(context)
                // 5.使用封装的数据请求
            link(payload.url).then((ok) => {
                console.log(ok.data)
                context.commit("UPOBJ", ok.data.arra)
            })
        }


    },
}

export default homes